/**
 * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 **/

.orders-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.orders-container h1 {
  margin-bottom: 2rem;
  color: #333;
  border-bottom: 2px solid #4CAF50;
  padding-bottom: 0.5rem;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.order-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.order-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.order-id {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.order-date {
  color: #777;
  font-size: 0.9rem;
}

.order-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e53935;
}

.order-status {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.order-status.pending {
  background-color: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

.order-status.paid {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}

.order-status.finished {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}

.order-status.cancelled {
  background-color: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.order-status.failed {
  background-color: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.orders-empty {
  text-align: center;
  padding: 3rem;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.orders-empty p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.orders-empty button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.orders-empty button:hover {
  background-color: #388E3C;
}

.orders-loading,
.orders-error {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
}

.orders-error {
  color: #e53935;
}